package com.xxtx.trade.sysUser.dto;

import com.xxtx.trade.common.util.model.PageInfoDto;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

@Data
public class BaiDuInfoDto extends PageInfoDto implements Serializable {
    private String aid;
    private String pid;
    private String uid;
    private String userid;
    private String click_id;
    private String idfa;
    private String imei_md5;
    private String androidid;
    private String androidid_md5;
    private String ip;
    private String ua;
    private String os;
    private String ts;
    private String ext_info;
    private String mac_md5;
    private String mac;
    private String oaid;
    private String oaid_md5;
    private String comb_id;
    private String size;
    private String deeplink_url;
    private String bd_vid;
    private String wordid;
    private String productid;


    private String urlId;
    private String agentName;
    private String urlName;
    private String createTime;

    // 用户相关配置，查询参数等
    private String user_role; // 用户角色
    private String agentId; // 该条链接所属的客户id

    private String startTimeString;
    private String endTimeString;

    // 字段开关
    private String aid_status;
    private String pid_status;
    private String uid_status;
    private String userid_status;
    private String click_id_status;
    private String idfa_status;
    private String imei_md5_status;
    private String androidid_status;
    private String androidid_md5_status;
    private String ip_status;
    private String ua_status;
    private String os_status;
    private String ts_status;
    private String ext_info_status;
    private String mac_md5_status;
    private String mac_status;
    private String oaid_status;
    private String oaid_md5_status;
    private String comb_id_status;
    private String size_status;
    private String deeplink_url_status;
    private String bd_vid_status;
    private String urlName_status;
    private String createTime_status;
    private String phone_status;
    private String place_status;
    private String agentName_status;
    private String wordid_status;
    private String productid_status;

    public void copyFrom(BaiDuInfoDto anotherDto) throws InvocationTargetException, IllegalAccessException{
        BeanUtils.copyProperties(this, anotherDto);
    }

}
